package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * PY_BalanceDetail实体类
 * 
 * @author 
 *
 */
public class PyBalancedetail {
	/***/
	private Object ID; 
	/***/
	private Integer ParentID; 
	/***/
	private String UserNo; 
	/***/
	private java.time.Instant BalanceDate; 
	/***/
	private Double BalanceMoney; 
	/***/
	private String BillNo; 
	/***/
	private Integer BillDetailID; 
	/***/
	private String CostTypeCode; 
	/***/
	private Double DetailRealMoney1; 
	/***/
	private Double DetailRealMoney2; 
	/***/
	private String PayNo; 
	/***/
	private Double PayUseMoney1; 
	/***/
	private Double PayUseMoney2; 
	/**
	 * 实例化
	 */
	public PyBalancedetail() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public PyBalancedetail(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("ParentID") instanceof Number) {
			this.setParentID(((Number) obj.get("ParentID")).intValue());
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("BalanceDate") instanceof java.time.Instant) {
			this.setBalanceDate((java.time.Instant) obj.get("BalanceDate"));
		}
		if (obj.get("BalanceMoney") instanceof Number) {
			this.setBalanceMoney(((Number) obj.get("BalanceMoney")).doubleValue());
		}
		if (obj.get("BillNo") instanceof String) {
			this.setBillNo((String) obj.get("BillNo"));
		}
		if (obj.get("BillDetailID") instanceof Number) {
			this.setBillDetailID(((Number) obj.get("BillDetailID")).intValue());
		}
		if (obj.get("CostTypeCode") instanceof String) {
			this.setCostTypeCode((String) obj.get("CostTypeCode"));
		}
		if (obj.get("DetailRealMoney1") instanceof Number) {
			this.setDetailRealMoney1(((Number) obj.get("DetailRealMoney1")).doubleValue());
		}
		if (obj.get("DetailRealMoney2") instanceof Number) {
			this.setDetailRealMoney2(((Number) obj.get("DetailRealMoney2")).doubleValue());
		}
		if (obj.get("PayNo") instanceof String) {
			this.setPayNo((String) obj.get("PayNo"));
		}
		if (obj.get("PayUseMoney1") instanceof Number) {
			this.setPayUseMoney1(((Number) obj.get("PayUseMoney1")).doubleValue());
		}
		if (obj.get("PayUseMoney2") instanceof Number) {
			this.setPayUseMoney2(((Number) obj.get("PayUseMoney2")).doubleValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getParentID() != null) {
			result.put("ParentID",this.getParentID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getBalanceDate() != null) {
			result.put("BalanceDate",this.getBalanceDate());
		}
		if (this.getBalanceMoney() != null) {
			result.put("BalanceMoney",this.getBalanceMoney());
		}
		if (this.getBillNo() != null) {
			result.put("BillNo",this.getBillNo());
		}
		if (this.getBillDetailID() != null) {
			result.put("BillDetailID",this.getBillDetailID());
		}
		if (this.getCostTypeCode() != null) {
			result.put("CostTypeCode",this.getCostTypeCode());
		}
		if (this.getDetailRealMoney1() != null) {
			result.put("DetailRealMoney1",this.getDetailRealMoney1());
		}
		if (this.getDetailRealMoney2() != null) {
			result.put("DetailRealMoney2",this.getDetailRealMoney2());
		}
		if (this.getPayNo() != null) {
			result.put("PayNo",this.getPayNo());
		}
		if (this.getPayUseMoney1() != null) {
			result.put("PayUseMoney1",this.getPayUseMoney1());
		}
		if (this.getPayUseMoney2() != null) {
			result.put("PayUseMoney2",this.getPayUseMoney2());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取ParentID
	 * 
	 * @return
	 */
	public Integer getParentID() {
		return ParentID;
	}

	/**
	 * 设置ParentID
	 * 
	 * @param ParentID
	 */
	public void setParentID(Integer ParentID) {
		this.ParentID = ParentID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取BalanceDate
	 * 
	 * @return
	 */
	public java.time.Instant getBalanceDate() {
		return BalanceDate;
	}

	/**
	 * 设置BalanceDate
	 * 
	 * @param BalanceDate
	 */
	public void setBalanceDate(java.time.Instant BalanceDate) {
		this.BalanceDate = BalanceDate;
	}
	
	/**
	 * 获取BalanceMoney
	 * 
	 * @return
	 */
	public Double getBalanceMoney() {
		return BalanceMoney;
	}

	/**
	 * 设置BalanceMoney
	 * 
	 * @param BalanceMoney
	 */
	public void setBalanceMoney(Double BalanceMoney) {
		this.BalanceMoney = BalanceMoney;
	}
	
	/**
	 * 获取BillNo
	 * 
	 * @return
	 */
	public String getBillNo() {
		return BillNo;
	}

	/**
	 * 设置BillNo
	 * 
	 * @param BillNo
	 */
	public void setBillNo(String BillNo) {
		this.BillNo = BillNo;
	}
	
	/**
	 * 获取BillDetailID
	 * 
	 * @return
	 */
	public Integer getBillDetailID() {
		return BillDetailID;
	}

	/**
	 * 设置BillDetailID
	 * 
	 * @param BillDetailID
	 */
	public void setBillDetailID(Integer BillDetailID) {
		this.BillDetailID = BillDetailID;
	}
	
	/**
	 * 获取CostTypeCode
	 * 
	 * @return
	 */
	public String getCostTypeCode() {
		return CostTypeCode;
	}

	/**
	 * 设置CostTypeCode
	 * 
	 * @param CostTypeCode
	 */
	public void setCostTypeCode(String CostTypeCode) {
		this.CostTypeCode = CostTypeCode;
	}
	
	/**
	 * 获取DetailRealMoney1
	 * 
	 * @return
	 */
	public Double getDetailRealMoney1() {
		return DetailRealMoney1;
	}

	/**
	 * 设置DetailRealMoney1
	 * 
	 * @param DetailRealMoney1
	 */
	public void setDetailRealMoney1(Double DetailRealMoney1) {
		this.DetailRealMoney1 = DetailRealMoney1;
	}
	
	/**
	 * 获取DetailRealMoney2
	 * 
	 * @return
	 */
	public Double getDetailRealMoney2() {
		return DetailRealMoney2;
	}

	/**
	 * 设置DetailRealMoney2
	 * 
	 * @param DetailRealMoney2
	 */
	public void setDetailRealMoney2(Double DetailRealMoney2) {
		this.DetailRealMoney2 = DetailRealMoney2;
	}
	
	/**
	 * 获取PayNo
	 * 
	 * @return
	 */
	public String getPayNo() {
		return PayNo;
	}

	/**
	 * 设置PayNo
	 * 
	 * @param PayNo
	 */
	public void setPayNo(String PayNo) {
		this.PayNo = PayNo;
	}
	
	/**
	 * 获取PayUseMoney1
	 * 
	 * @return
	 */
	public Double getPayUseMoney1() {
		return PayUseMoney1;
	}

	/**
	 * 设置PayUseMoney1
	 * 
	 * @param PayUseMoney1
	 */
	public void setPayUseMoney1(Double PayUseMoney1) {
		this.PayUseMoney1 = PayUseMoney1;
	}
	
	/**
	 * 获取PayUseMoney2
	 * 
	 * @return
	 */
	public Double getPayUseMoney2() {
		return PayUseMoney2;
	}

	/**
	 * 设置PayUseMoney2
	 * 
	 * @param PayUseMoney2
	 */
	public void setPayUseMoney2(Double PayUseMoney2) {
		this.PayUseMoney2 = PayUseMoney2;
	}

	@Override
	public String toString() {
		return "PyBalancedetail [ID=" + ID + " , ParentID=" + ParentID + " , UserNo=" + UserNo + " , BalanceDate=" + BalanceDate + " , BalanceMoney=" + BalanceMoney + " , BillNo=" + BillNo + " , BillDetailID=" + BillDetailID + " , CostTypeCode=" + CostTypeCode + " , DetailRealMoney1=" + DetailRealMoney1 + " , DetailRealMoney2=" + DetailRealMoney2 + " , PayNo=" + PayNo + " , PayUseMoney1=" + PayUseMoney1 + " , PayUseMoney2=" + PayUseMoney2 + "  ]";
	
	}
	
	
}
